<%
"""
   Main menu. 

   expects:
       hlight  - name of page to be high-lighted 
"""
%>
        <span class="menu">
	  <table border="0">	
<%

# This is a list of tuple representing the menu contents.
# Each tuple is:
#   name - the name of the menu item/page
#   text - the text to be shown in the menu
#   url  - the URL


menu_items = [("home", "Home", "home"),
              ("file_transfer", "Nodes Managment", "file_transfer"),
              ("node_status", "Nodes Status", "node_status"),
              ("emergency", "Emergency notifications", "emergency"),
              ("administration", "Administration Preferences", "admin_preference"),
              ("about", "About", "about")]

for name, text, url in menu_items:
    attr = ""
    if name == hlight:
        attr = "class='highlight'"
    # begin
%>
            <tr><td <%=attr%>><a href="<%=url%>"><%=text%></a></td></tr>
<%
# end
%>
	  </table>
        </span>
